/*
* Copyright (c) 18/5/15 foo.com. All Rights Reserved.
*/
package com.cgmnx.admin.biz;

import com.cgmnx.admin.common.bean.Limiter;
import com.cgmnx.admin.dao.condition.ReplyCondition;
import com.cgmnx.admin.dao.entity.ReplyEntity;
import com.cgmnx.admin.service.ReplyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: z Date: 18/5/15 Time: 下午10:26
 * @version: 1.0.0
 */
@Service
public class ReplyBizImpl implements ReplyBiz {

    @Resource
    private ReplyService replyService;

    @Override
    public void save(ReplyEntity reply) {
        replyService.save(reply);
    }

    @Override
    public List<ReplyEntity> queryPage(ReplyCondition condition,Limiter limiter) {
        return replyService.queryPage(condition,limiter);
    }

    @Override
    public int count(ReplyCondition condition) {
        return replyService.count(condition);
    }

    @Override
    public ReplyEntity queryById(Integer id) {
        return replyService.queryById(id);
    }

    @Override
    public void audit(Integer id, Integer newStatus, Integer oldStatus) {
        replyService.updateAudit(id, newStatus, oldStatus);
    }
}

